test: fix a trivial typo in libtests.sh
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Thu, 15 Aug 2013 22:59:01 +0000 (00:59 +0200)
committerColin Walters <walters@verbum.org>
Tue, 20 Aug 2013 10:46:52 +0000 (06:46 -0400)
When running the test-admin-deploy-1.sh unit test,
cat shows the following error:

cat: boot/vmlinuz-3-6.0: No such file or directory

due a trivial typo in the kernel image file name.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
https://bugzilla.gnome.org/show_bug.cgi?id=706371

tests/libtest.sh

index 89d50b86abfd27f8e2f8ed9ec113908de710f5ba..35051db98f555e12a86dd896560c586ca9ed2d04 100644 (file)
@@ -175,7 +175,7 @@ setup_os_repository () {
     echo "a kernel" > boot/vmlinuz-3.6.0
     echo "an initramfs" > boot/initramfs-3.6.0
     echo "a kernel module" > usr/lib/modules/3.6.0/foofs.ko
-    bootcsum=$(cat boot/vmlinuz-3-6.0 boot/initramfs-3.6.0 usr/lib/modules/3.6.0/foofs.ko | sha256sum | cut -f 1 -d ' ')
+    bootcsum=$(cat boot/vmlinuz-3.6.0 boot/initramfs-3.6.0 usr/lib/modules/3.6.0/foofs.ko | sha256sum | cut -f 1 -d ' ')
     export bootcsum
     mv boot/vmlinuz-3.6.0 boot/vmlinuz-3.6.0-${bootcsum}
     mv boot/initramfs-3.6.0 boot/initramfs-3.6.0-${bootcsum}